<template>
  <div>
    <GoodHeader />
    <GoodInfo :goodsInfo="goodsInfo"  />
    <GoodPost :poster="poster" />
  </div>
</template>

<script>
import GoodHeader from './Good-Header';
import GoodInfo from './Good-Info';
import GoodPost from './Good-Post';

export default {
  components: {
    GoodHeader,
    GoodInfo,
    GoodPost
  },
  data() {
    return {
      goodsInfo: {},
      poster: ""
    };
  },
  computed: {
    goodId() {
      return this.$route.query.projectId;
    }
  },
  async activated() {
    var data = await this.$http.get("/index.php/getGoodsDetail", {
      params: {
        gid: this.goodId
      }
    });
    this.goodsInfo = data.data.goodsInfo;
    this.poster = data.data.poster;
  }
};
</script>

<style>
</style>